Skip to content

fix(init): materialize sentry auth token placeholders#1114

Draft
betegon wants to merge 1 commit into
mainfrom
fix/init-auth-token-materialization
Draft

fix(init): materialize sentry auth token placeholders#1114
betegon wants to merge 1 commit into
mainfrom
fix/init-auth-token-materialization

Conversation

@betegon

@betegon betegon commented Jun 19, 2026

Copy link
Copy Markdown
Member

Summary

Init can now safely apply Sentry auth-token placeholders in local config files. The server can emit ___ORG_AUTH_TOKEN___, while the CLI replaces it locally for .sentryclirc, sentry.properties, and env files during apply-patchset.

Changes

The replacement runs after both created file content and modify edits are resolved, so deterministic Cocoa and React Native config can use the same placeholder path. Existing env-file empty-token replacement still works as before.

Test Plan

  • pnpm exec biome check src/lib/init/tools/apply-patchset.ts test/lib/init/tools/filesystem-tools.test.ts
  • pnpm vitest run test/lib/init/tools/filesystem-tools.test.ts

@github-actions

Copy link
Copy Markdown
Contributor
PR Preview Action v1.8.1

QR code for preview link

🚀 View preview at
https://cli.sentry.dev/_preview/pr-1114/

Built to branch gh-pages at 2026-06-19 10:16 UTC.
Preview will be ready when the GitHub Pages deployment is complete.

@github-actions

Copy link
Copy Markdown
Contributor

Codecov Results 📊

✅ Patch coverage is 92.86%. Project has 5054 uncovered lines.
❌ Project coverage is 81.23%. Comparing base (base) to head (head).

Files with missing lines (1)
File Patch % Lines
src/lib/init/tools/apply-patchset.ts 92.86% ⚠️ 1 Missing and 2 partials
Coverage diff
@@            Coverage Diff             @@
##          main       #PR       +/-##
==========================================
- Coverage    81.24%    81.23%    -0.01%
==========================================
  Files          388       388         —
  Lines        26910     26920       +10
  Branches     17481     17491       +10
==========================================
+ Hits         21861     21866        +5
- Misses        5049      5054        +5
- Partials      1822      1827        +5

Generated by Codecov Action

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant